//
//  BaseView.m
//  ZITHER
//
//  Created by weixin on 2018/11/14.
//  Copyright © 2018 weixn. All rights reserved.
//

#import "BaseView.h"

@implementation BaseView

/** 设置四周阴影 */
-(void)setShadowRadius:(CGFloat)radius Opacity:(CGFloat)opacity Color:(UIColor*)color{
    self.layer.cornerRadius = radius;
    self.layer.shadowOffset = CGSizeZero;//默认为0,-3
    self.layer.shadowColor = color.CGColor;
    self.layer.shadowOpacity = opacity;//阴影透明度，默认0
    self.layer.shadowOffset = CGSizeMake(10, 10);
    self.layer.shadowOffset = CGSizeZero;
}

-(RACSignal *)addTag{
    /** 添加点击事件 */
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] init];
    self.userInteractionEnabled = YES;
    [self addGestureRecognizer:tap];
    return [tap rac_gestureSignal];
    
}


@end
